package com.yuexinduo.education.ui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.yuexinduo.education.R;
import com.yuexinduo.baselibrary.base.BaseMvpActivity;

public class MemberBenefitActivity extends BaseMvpActivity implements View.OnClickListener {
    private ImageView back;
    private TextView top;
    private TextView studentFiltrate;
    private TextView teacherRegister;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected int bindLayout() {
        return R.layout.activity_member_benefit;
    }

    @Override
    protected Activity getActivity() {
        return this;
    }

    @Override
    protected void initCreate() {

        back = (ImageView) findViewById(R.id.back);
        top = (TextView) findViewById(R.id.top);
        studentFiltrate = (TextView) findViewById(R.id.student_filtrate);
        teacherRegister = (TextView) findViewById(R.id.teacher_register);
        back.setOnClickListener(this);
        studentFiltrate.setOnClickListener(this);
        teacherRegister.setOnClickListener(this);
        top.setText("会员权益");

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.back:
                finish();
                break;
            case R.id.student_filtrate:
                break;
            case R.id.teacher_register:
                startActivity(new Intent(getActivity(),RegisterTeacherActivity.class));
                break;
        }
    }
}